package com.example.administrator.test.personal;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;

import com.example.administrator.test.R;
import com.example.administrator.test.UsableAddressActivity;

/**
 * Created by Administrator on 2016/11/29.
 */
public class SettingsActivity extends AppCompatActivity {
    private Intent intent;
    private ImageView mSettingsBack;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        mSettingsBack= (ImageView) findViewById(R.id.settings_back);
        mSettingsBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }
    public void onclick(View view){
        switch (view.getId()){
            case R.id.about_mumuxing:
                //点击跳转到关于目目行界面
                intent =new Intent(SettingsActivity.this,AboutMuMuXingActivity.class);
                startActivity(intent);
                break;
            case R.id.usable_address:
                //跳转到常用地址界面
                intent =new Intent(SettingsActivity.this,UsableAddressActivity.class);
                startActivity(intent);
                break;
            case R.id.legalProvisions:
                //跳转到法律条款页面
                intent =new Intent(SettingsActivity.this,LeaglProvisionActivity.class);
                startActivity(intent);
                break;
        }
    }
}
